Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | var assert = require('chai').assert, |
||
99 | describe('toJSON', function(){ |
||
100 | |||
101 | it('arrays', function(){ |
||
102 | assert.deepEqual( |
||
103 | GedcomX.utils.toJSON({ |
||
104 | facts: [ |
||
105 | GedcomX.Fact({ |
||
106 | date: { |
||
107 | formal: '+2001' |
||
108 | } |
||
109 | }) |
||
110 | ] |
||
111 | }), |
||
112 | { |
||
113 | facts: [ |
||
114 | { |
||
115 | date: { |
||
116 | formal: '+2001' |
||
117 | } |
||
118 | } |
||
119 | ] |
||
120 | } |
||
121 | ); |
||
122 | }); |
||
123 | |||
124 | }); |
||
125 | |||
126 | }); |